package com.qiyi.player.core.model.utils
{
   import flash.utils.Dictionary;
   
   public class CachePool extends Object
   {
      
      public function CachePool() {
         super();
      }
      
      private static var _vrsPool:Dictionary = new Dictionary();
      
      private static var _vrsInfoPool:Dictionary = new Dictionary();
      
      private static var _metaPool:Dictionary = new Dictionary();
      
      public static function saveVRSSource(param1:String, param2:String, param3:String) : void {
         var _loc4_:String = null;
         if((param2) && (param3))
         {
            _loc4_ = param1 + param2;
            _vrsPool[_loc4_] = param3;
         }
      }
      
      public static function getVRSSource(param1:String, param2:String) : String {
         var _loc3_:String = param1 + param2;
         if(_vrsPool[_loc3_])
         {
            return _vrsPool[_loc3_];
         }
         return "";
      }
      
      public static function saveVRSInfoSource(param1:String, param2:String, param3:String) : void {
         var _loc4_:String = null;
         if((param2) && (param3))
         {
            _loc4_ = param1 + param2;
            _vrsInfoPool[_loc4_] = param3;
         }
      }
      
      public static function getVRSInfoSource(param1:String, param2:String) : String {
         var _loc3_:String = param1 + param2;
         if(_vrsInfoPool[_loc3_])
         {
            return _vrsInfoPool[_loc3_];
         }
         return "";
      }
      
      public static function saveMetaSource(param1:String, param2:String, param3:XML) : void {
         var _loc4_:String = null;
         if((param2) && (param3))
         {
            _loc4_ = param1 + param2;
            _metaPool[_loc4_] = param3;
         }
      }
      
      public static function getMetaSource(param1:String, param2:String) : XML {
         var _loc3_:String = param1 + param2;
         if(_metaPool[_loc3_])
         {
            return _metaPool[_loc3_];
         }
         return null;
      }
   }
}
